package com.comleader.operator.pojo.entity;

import javax.validation.constraints.NotBlank;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import lombok.Data;

/**
 * @Description 字典数据表
 * @Auhtor 连新景
 * @Date 2024/07/15 11:08
 */
@Table("dict_data")
@Data
public class DictDataEntity {
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    /** 字典编码 */
    @NotBlank(message = "字典编码不能为空")
    private String code;

    /** 字典key */
    @NotBlank(message = "字典key不能为空")
    private String dictKey;

    /** 字典键值 */
    @NotBlank(message = "字典键值不能为空")
    private String dictValue;

    /** 字典排序 */
    private Integer sort;

}
